package com.djh.controller;

import com.djh.service.StoDailyService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * Created by djh on 2018/9/28.
 */
@Controller
//@RequestMapping(value = "/user")
public class HelloController {

    @Autowired
    StoDailyService stoDailyService;



    @ResponseBody
    @RequestMapping("/")
    public String hello(){

        return stoDailyService.getOne().toString();
    }

    public static void main(String[] args) {

    }
}
